package g11.actionutil;

import g11.dao.DAOException;
import g11.model.Appointment;
import g11.model.Employee;

import java.util.List;

/**
 * @author Fern: complicate methods on Appointment
 * 
 */
public interface AppointmentUtil {
	/**
	 * @param doctor
	 *            the object of Employee.
	 * @param appointment
	 *            the object of Appointment.
	 * @return false, if no conflicts; true, if there're any conflicts.
	 * @throws DAOException
	 *             if there's any DAO exception.
	 * @see
	 */
	boolean checkAppointmentConflicByDoctor(Employee doctor,
			Appointment appointment, boolean update) throws DAOException;

	public List<Appointment> getTodayAppointmentByStaff(Employee staff)
			throws DAOException;

	public List<Appointment> getAppointmentByStaff(Employee staff)
			throws DAOException;

}
